package shejimoshi.observer;

public class Test {
    public  static  void main(String[] args){
        GuPiao gp=new GuPiao();
        GuMing g1=new GuMing("孙悟空");
        GuMing g2=new GuMing("老朱");
        GuMing g3=new GuMing("唐三藏");
        gp.attach(g1);
        gp.attach(g2);
        gp.attach(g3);
        //gp.delete(g2);//删除g2
        gp.setPrice(23.02);
        //gp.notifyObservers(23.02);

    }
}
